added SSCLI 1.0
[windows-sources.git] / shared source / sscli20 / tools / resourcecompiler / expeval.h
blobac01581c6609db2b2d1ccb613ba36a3db4866508
1 // ==++==
2 //
3 //
4 // Copyright (c) 2006 Microsoft Corporation. All rights reserved.
5 //
6 // The use and distribution terms for this software are contained in the file
7 // named license.txt, which can be found in the root of this distribution.
8 // By using this software in any fashion, you are agreeing to be bound by the
9 // terms of this license.
10 //
11 // You must not remove this notice, or any other, from this software.
12 //
13 //
14 // ==--==
15 // ===========================================================================
16 // File: expeval.h
17 // Purpose: Header file for Expression Evaluator
18 // ===========================================================================
20 #ifndef __EXPEVAL_H__
21 #define __EXPEVAL_H__
23 typedef enum _TokenType {
24 TK_MOD, //1
25 TK_PLUS, //2
26 TK_MINUS, //3
27 TK_STAR, //4
28 TK_DIVIDE, //5
29 TK_LEFT_PAREN, //6
30 TK_RIGHT_PAREN, //7
31 TK_NUMBER, //8
32 TK_EOS //9
34 } TOKENTYPE, *PTOKENTYPE;
36 typedef struct _Token {
37 TOKENTYPE Type;
38 char* Name;
39 LONG Value;
40 } TOKEN, *PTOKEN;
43 LONG
44 Expr_Eval(
45 void
48 LONG
49 Expr_Eval_1(
50 void
53 LONG
54 Expr_Eval_2(void);
56 #endif /* __EXPEVAL_H__ */